// 获取数据
const getStorage = (key: string) => {
  return localStorage.getItem(key)
}
// 存入localStorage
const setStorage = (key: string, value: any) => {
  return localStorage.setItem(key, JSON.stringify(value))
}

// 清除localStorage
const clearStorage = (key: string) => {
  return localStorage.removeItem(key)
}

export { getStorage, setStorage, clearStorage }
export default {}
